<?php foreach($mmenus as $key=>$menus): ?>
<ul>
  <?php $menus['submenu'] = isset($menus['submenu'])?$menus['submenu']:array()?>
  <?php foreach($menus['submenu'] as $key1=>$menu):?>
  <li>
   <dl>
    <dt><?php echo isset($menu['title'])?$menu['title']:''; ?></dt>
    <!--当前链接则添加class:active-->
    <?php $menu['submenu'] = isset($menu['submenu'])?$menu['submenu']:array()?>
    <?php foreach($menu['submenu'] as $key2=>$item):?>
      <dd>
        <a href="<?php $url = isset($item['url'])?$item['url']:''; echo $url.'&cate='.$key.$key1.$key2?>". ><?php echo isset($item['title'])?$item['title']:'';?></a>
      </dd>
    <?php endforeach;?>
   </dl>
  </li>
  <?php endforeach;?>
 </ul>
 <?php endforeach;?>
 <script>

function GetQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}
 $(document).ready(function(){
   url = GetQueryString('cate');
   urls = url.split('');
   $("dt").each(function(index){
        if(urls[1] != index) {
          $(this).parent().find("dd").each(function(){
             $(this).fadeToggle(1 ); 
          })
        }
      });

  setmenus();
 function setmenus(){
   $(".lt_aside_nav").find("ul").eq(urls[0]).css('display','block');
   $(".lt_aside_nav").find("ul").eq(urls[0]).find("li").eq(urls[1]).find("dd").css('display','block');
    $(".lt_aside_nav").find("ul").eq(urls[0]).find("li").eq(urls[1]).find("dd").eq(urls[2]).find("a").addClass('active');
 }
 })
 </script>